package com.scgl.sheet.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 生产信息对象 scgl_damage
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
public class ScglDamage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选择产品 */
    private Long optionId;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String productCode;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String materialtype;

    /** 产品分类 */
    @Excel(name = "产品分类")
    private String cate;

    /** 制造方式 */
    @Excel(name = "制造方式")
    private String method;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 产品规格 */
    @Excel(name = "产品规格")
    private String specification;

    /** 车间 */
    @Excel(name = "车间")
    private Long shopId;

    /** 生产线 */
    @Excel(name = "生产线")
    private Long productId;

    /** 计划产量 */
    @Excel(name = "计划产量")
    private Long plannedProduction;

    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startdate;

    /** 计划结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date denddate;

    /** 工艺路线 */
    @Excel(name = "工艺路线")
    private Long craftId;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setMaterialtype(String materialtype) 
    {
        this.materialtype = materialtype;
    }

    public String getMaterialtype() 
    {
        return materialtype;
    }
    public void setCate(String cate) 
    {
        this.cate = cate;
    }

    public String getCate() 
    {
        return cate;
    }
    public void setMethod(String method) 
    {
        this.method = method;
    }

    public String getMethod() 
    {
        return method;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setPlannedProduction(Long plannedProduction) 
    {
        this.plannedProduction = plannedProduction;
    }

    public Long getPlannedProduction() 
    {
        return plannedProduction;
    }
    public void setStartdate(Date startdate) 
    {
        this.startdate = startdate;
    }

    public Date getStartdate() 
    {
        return startdate;
    }
    public void setDenddate(Date denddate) 
    {
        this.denddate = denddate;
    }

    public Date getDenddate() 
    {
        return denddate;
    }
    public void setCraftId(Long craftId) 
    {
        this.craftId = craftId;
    }

    public Long getCraftId() 
    {
        return craftId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("productCode", getProductCode())
            .append("materialtype", getMaterialtype())
            .append("cate", getCate())
            .append("method", getMethod())
            .append("unit", getUnit())
            .append("specification", getSpecification())
            .append("shopId", getShopId())
            .append("productId", getProductId())
            .append("plannedProduction", getPlannedProduction())
            .append("startdate", getStartdate())
            .append("denddate", getDenddate())
            .append("craftId", getCraftId())
            .toString();
    }
}
